//
// Created by 123 on 2025/1/8.
//

#include "deque"
#include "iostream"
using namespace std;

void printDeque(deque<int>& d){
    for(deque<int>::const_iterator it=d.begin();it != d.end();it++){
        cout << *it << " ";
    }
    cout << endl;
}

void test(){
    deque<int> d1;
    for(int i=0;i<10;i++){
        d1.push_back(i);
    }
    printDeque(d1);

    if(d1.empty()){
        cout << "d1 is null" << endl;
    }else{
        cout << " d1 is not null" << endl;
        cout << "d1 size=" << d1.size() << endl;
    }
    d1.resize(15,1);
    printDeque(d1);

    d1.resize(5);
    printDeque(d1);
    cout << "d1 size=" << d1.size();

}

int main126(){

    test();
    return 0;
}